package com.sky.utils;

/**
 * 2025/07/01
 * 获取员工id
 */
public class CurrentHolder {
    private static final ThreadLocal<Long> CURRENT_HOLDER = new ThreadLocal<>();

    public static void setCurrentId(Long id){
        CURRENT_HOLDER.set(id);
    }

    public static Long getCurrentId(){
        return CURRENT_HOLDER.get();
    }

    public static void remove(){
        CURRENT_HOLDER.remove();
    }
}
